home *** CD-ROM | disk | FTP | other *** search
- import java.io.DataInputStream;
-
- class CEventTrigger extends CIconObject {
- public static final int ACTIVE_ALWAYS = 1;
- public static final int ACTIVE_IF = 2;
- public static final int INACTIVE = 16;
- public static final int WAIT_FOR_ANY_DDE = 4;
- public static final int WAIT_FOR_DDE_TEXT = 8;
- int m_nFlags;
- String m_strCondition;
-
- boolean LoadFromFile(DataInputStream var1) {
- this.m_nFlags = FileLoad.ReadCPlusInt(var1);
- this.m_strCondition = FileLoad.ReadCString(var1);
- return super.LoadFromFile(var1);
- }
-
- CEventTrigger() {
- this.m_nFlags = 1;
- this.m_strCondition = "";
- }
-
- CEventTrigger(int var1) {
- super(var1);
- this.m_nFlags = 1;
- this.m_strCondition = "";
- }
-
- CEventTrigger(CEventTrigger var1) {
- this.m_nFlags = ((CIconObject)var1).GetEventFlags();
- this.m_strCondition = ((CIconObject)var1).GetConditionString();
- }
-
- boolean IsActive() {
- return (this.m_nFlags & 1) != 0 || (this.m_nFlags & 2) != 0 && this.m_strCondition.length() > 0 && Utils.CheckExpression(this.m_strCondition, false);
- }
- }
-